<?php


namespace app\index\validate;


use think\Validate;

class messageValidate extends Validate
{
    protected $rule = [
        'mobile'=>'require|mobile',
        'name' => 'require',
        'content'=>'require'
    ];
    protected $message = [
        'mobile'=>'手机号不能为空',
        'mobile.mobile'=>'请输入正确的手机号',
        'name'=>'姓名不能为空',
        'content'=>'内容不能为空',

    ];

    protected $scene = [
        'add_message' => ['mobile','name','content'],

    ];
}